package com.rui.patterns.reponsobility;

/**
 * @author : [锐神NO.3]
 * @version : [v1.0]
 * @className : GroupLeader
 * @createTime : [2022/2/24 14:18]
 * @description : [小组长]
 */

public class GroupLeader extends Handler{

    public GroupLeader(){
        super(0, Handler.NUM_ONE);
    }

    @Override
    protected void handleLeave(LeaveRequest leave) {
        System.out.println(leave.getName() + "请假" + leave.getNum() + "天" + " 请假理由: " + leave.getContent());
        System.out.println("小组长审批,同意");
    }
}
